package com.example.demo.service.impl;

import com.example.demo.dao.UserMapper;
import com.example.demo.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

@Service
public class UserserviceImpl implements UserService {
    @Resource
    UserMapper userDao;

    @Override
    public List<Map<String, Object>> userQueryAll() {
        try {

            return userDao.userQueryAll();
        } catch (Exception e) {
            e.printStackTrace();
            return null;
        }
    }
}
